<?php
session_start();
require_once "db.php";

$query = "SELECT movie_name FROM movies WHERE past_present_future = '2' ORDER BY movie_name ASC";
$get_cinema = db_query($query);
$final_content = "";

if(mysqli_num_rows($get_cinema)!=0) {
	$final_content .="<div id='movies-list'>";
	while ($row = mysqli_fetch_assoc($get_cinema)) {
		$movie_name = $row['movie_name'];
		$row_content = "<div class='movie-name'><a  href='#'>".$movie_name."</span></div>";
		$final_content .=$row_content;	
	}
$final_content .="</div>";
}
echo $final_content;
